package com.kalvin.kvf.common.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @program: kvf
 * @className: WebController.java
 * @description:
 * @author: ZY
 * @create: 2020年11月20日 19:55
 **/

@RestController
public class WebController {

    @GetMapping("/www")
    public ModelAndView redirect(String url) {
        System.out.println("访问嵌入网页：" + url);
        ModelAndView mav = new ModelAndView("web");
        mav.addObject("url", url);
        return mav;
    }
}
